const mongoose = require('mongoose')
const Schema = mongoose.Schema

// news模型
const NewsType = {
  title: String,
  content: String,
  category: Number, //类别 1，2，3
  cover: String,
  isPublish: Number, //0未发布 1已发布
  editTime: Date
}
const NewsModel = mongoose.model('news', new Schema(NewsType))
module.exports = NewsModel
